package com.cu.jiekong;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;

/**
 * EnableEurekaClient 这是eureka服务注册者
 * restController 服务是restful 形式请求，即无页面形式返回
 * EnableAutoConfiguration 这个是允许自定义一些配置，使用druid连接池需要
 * MapperScan mybatis扫描dao层
 **/
@EnableAutoConfiguration
@SpringBootApplication
@EnableEurekaClient
@EnableHystrix
@EnableCircuitBreaker
@MapperScan(basePackages = "com.cu.jiekong.dao")
public class AppSystemApplication {

    public static void main(String[] args) {
        SpringApplication.run(AppSystemApplication.class, args);
    }
}
